package com.ylsd.prospectivestudent.mapper;

import com.ylsd.prospectivestudent.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PSMapper {
    boolean insertPS(ProspectiveStudent student);
    List<ProspectiveStudent> findByPage(ProspectiveStudent prospectiveStudent);
    boolean delPS(List<Integer> id);
    boolean updatePS(ProspectiveStudent student);

    List<ProspectiveStudent> findByDelPage(ProspectiveStudent prospectiveStudent);

    List<StudentSource> findBySource();

    List<Teacher> findByTeacher();

    ProspectiveStudent findByCid(Integer cid);

    ProspectiveStudent findDelDetailById(Integer id);

    List<PSExcel> findByExcel();

    List<PSExcelModel> findByExcelModel();

    void importStudents(@Param("students") List<ImportStudents> studentList);

    List<CountGroup> findCountGroupByDate();

    List<PSPie> findPie();

    Integer piecount();

    Integer newStudent();

    Integer delStudent();
}
